//
//  BHSportClockProgressCell.swift
//  BigHealth
//
//  Created by 蔺百好 on 2021/7/16.
//

import UIKit

class BHSportClockProgressCell: UITableViewCell {

    @IBOutlet weak var progress_label: UILabel!
    @IBOutlet weak var progress_totalView: UIView!
    
    @IBOutlet weak var progress_completeView: UIView!
    
    @IBOutlet weak var progress_width: NSLayoutConstraint!
    
    var model: BHSportSignDetailModel! {
        didSet {
            self.progress_label.text = "当日进度\(model.progress)%"
            self.progress_width.constant = model.progressWidth
        }
    }
    
    
    override func awakeFromNib() {
        super.awakeFromNib()
      
        self.progress_totalView.addLayerCorner(4, 0, .white)
        self.progress_completeView.addLayerCorner(4, 0, .white)

    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
